package com.yy.service;

import com.yy.clientEntities.Payment;
import com.yy.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author young
 * @date 2022/12/24 16:34
 * @description:
 */
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
@Component
public interface TestFeignService {
    @GetMapping("/payment/{id}")
    Result<Payment> getOne(@PathVariable("id")Integer id);
    
    @GetMapping("/payment/timeout")
    String timeout();
}
